import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/recommend'
  },
  {
    path: '/login',
    component: () => import(/* webpackChunkName: "about" */ '../components/Login.vue')
  },
  {
    path: '/recommend',
    name: 'recommend',
    component: () => import(/* webpackChunkName: "about" */ '../views/Recommend.vue')
  },
  {
    path: '/toplist',
    name: 'toplist',
    component: () => import(/* webpackChunkName: "about" */ '../views/TopList.vue')
  },
  {
    path: '/singlist',
    name: 'singlist',
    component: () => import(/* webpackChunkName: "about" */ '../views/SingList.vue')
  },
  {
    path: '/djradio',
    name: 'djradio',
    component: () => import(/* webpackChunkName: "about" */ '../views/DjRadio.vue')
  },
  {
    path: '/singerlist',
    name: 'singerlist',
    component: () => import(/* webpackChunkName: "about" */ '../views/SingerList.vue')
  },
  {
    path: '/album',
    name: 'album',
    component: () => import(/* webpackChunkName: "about" */ '../views/Album.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
